package com.nti56.springboot.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;


/**
 * TreeGridNode  返回前台必须 有 id ,_parentId 字段
 * 并且要带  {total:5,rows:[id,_parentId]} 方式返回JSON，
 * 否则显示不正确
 * @author shenzhiqiang
 *
 */
public class TreeGridNode extends TreeNode{
	
	private String id;
	
	//@JsonInclude(Include.NON_NULL)
	
	private String _parentId;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@JSONField(name="_parentId")
	public String get_parentId() {
		return _parentId;
	}
	@JSONField(name="_parentId")
	public void set_parentId(String _parentId) {
		this._parentId = _parentId;
	}
	
}
